package com.ruoyi.bus.mapper;

import java.util.List;
import com.ruoyi.bus.domain.WitPlan;

/**
 * 排班计划Mapper接口
 * 
 * @author caiyanshan
 * @date 2021-04-17
 */
public interface WitPlanMapper 
{
    /**
     * 查询排班计划
     * 
     * @param planId 排班计划ID
     * @return 排班计划
     */
    public WitPlan selectWitPlanById(Long planId);

    /**
     * 查询排班计划列表
     * 
     * @param witPlan 排班计划
     * @return 排班计划集合
     */
    public List<WitPlan> selectWitPlanList(WitPlan witPlan);

    /**
     * 新增排班计划
     * 
     * @param witPlan 排班计划
     * @return 结果
     */
    public int insertWitPlan(WitPlan witPlan);

    /**
     * 修改排班计划
     * 
     * @param witPlan 排班计划
     * @return 结果
     */
    public int updateWitPlan(WitPlan witPlan);

    /**
     * 删除排班计划
     * 
     * @param planId 排班计划ID
     * @return 结果
     */
    public int deleteWitPlanById(Long planId);

    /**
     * 批量删除排班计划
     * 
     * @param planIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteWitPlanByIds(Long[] planIds);
    
    public int updateWitPlanStatus();
    
    public List<WitPlan> todayPlan(String dept);

    public List<WitPlan> listHomePlanRecord(Long userId);
}
